package common;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public interface JDBCCallBack<T> {

    T rsToObject(ResultSet rs) throws SQLException;

    /**
     * 给sql语句里的参数赋值
     */
    void setParams(PreparedStatement stmt) throws SQLException;
}
